/** 维修综合统计模块 **/

import http from "@/api";

// 获取车型
export const getVehicleTypeList = (params) => {
    return http.post(`/fault/getVehicleType`, params); 
};

// 获取车辆编号
export const getVehicleNoList = (params) => {
    return http.post(`/fault/getVehicleNoByOrgId`, params); 
};

// 获取零件名称
export const getModeNameList = () => {
    return http.post(`/fault/getMateriName`, {}); 
};

// 获取零件号
export const getModNoList = () => {
    return http.post(`/fault/getMateriCode`, {}); 
};

// 获取单车故障统计表头
export const getBicycleFaultTableColumn = (params) => {
    return http.post(`/fault/getFaultVehicleHeader`, params); 
};

// 获取单车故障统计列表内容
export const getBicycleFaultTableList = (params) => {
    return http.post(`/fault/getFaultVehicleList`, params); 
};

// 获取零件故障率表头
export const getModFaultTableColumn = (params) => {
    return http.post(`/fault/getFaultMaterialHeader`, params); 
};

// 获取零件故障率列表内容
export const getModFaultTableList = (params) => {
    return http.post(`/fault/getFaultMaterialList`, params); 
};

// 获取整车故障率表头
export const getFinishedCarTableColumn = (params) => {
    return http.post(`/fault/getFaultVehicleTypeHeader`, params); 
};

// 获取整车故障率列表内容
export const getFinishedCarTableList = (params) => {
    return http.post(`/fault/getFaultVehicleTypeList`, params); 
};

// 获取维修单耗时统计表头
export const maintenOrderTimeStatisTableColumn = (params) => { 
    return http.post(`/fault/getMaintainTimeHeader`, params); 
};

// 获取维修单耗时统计列表内容
export const maintenOrderTimeStatisTableList = (params) => { 
    return http.post(`/fault/getMaintainTimeList`, params); 
};